<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Liaowz
  Date: 2015/11/21
  Time: 18:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% String path = request.getContextPath();%>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="Keywords" content=""/>
    <meta name="author" content="liaowz">
    <title>新建文章</title>
    <%--<link rel="icon" href="">--%>
    <link rel="stylesheet" href="<%=path%>/resources/css/bootstrap.css"/>
    <link rel="stylesheet" href="<%=path%>/resources/css/style.css"/>
    <script type="text/javascript" src="<%=path%>/resources/js/jquery-2.1.4.min.js"></script>
    <script type="text/javascript" src="<%=path%>/resources/js/bootstrap.min.js"></script>
</head>
<body>
<div class="main">
<form action="save" method="post">

    <div class="input-group">
        <span class="input-group-addon" id="basic-addon1">文章标题</span>
        <input type="text" class="form-control" name="title" placeholder="title" aria-describedby="basic-addon1">
    </div>

    <br/>

    <div class="input-group">
        <span class="input-group-addon" id="basic-addon2">文章内容</span>
        <input type="text" class="form-control" name="content" placeholder="content" aria-describedby="basic-addon1">
    </div>

    <br/>

    <div class="input-group">
        <span class="input-group-addon" id="basic-addon3">文章类别</span>
        <select name="articleType" id="articleType">
            <c:forEach var="type" items="${articleTypes}" varStatus="vstatus">
                <option value="${type.name}">${type.name}</option>
            </c:forEach>
        </select>
    </div>

    <br/>

    <input class="btn btn-primary" type="submit" value="保存"/>

</form>
</div>
</body>
</html>
